package pers.wq.model.bean;

import java.util.Map;

import pers.wq.model.MyModel;

public class BaseBean {
	public static final String TAG_HIDDEN = "hidden";
	public int getId(){
		return 0;
	}
	public BaseBean initBean(){
		 System.out.println("BaseBean initBean " + getId() + " " + this.getClass().getSimpleName());
		 BaseBean reBB = (BaseBean) MyModel.select(this.getClass(), getId());
		 System.out.println("BaseBean initBean " + reBB);
		 return reBB;
	}
	public void setId(int id){
		
	}
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "[ id = "+getId()+" ]";
	}
	public Map<String,String> tagMap(){
		System.out.println("BaseBean tagMap Error");
		return null;
	}
	public Map<String,String> tagMap4Stu(){
		return tagMap();
	}
}
